﻿-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[A_GET_CampeonatosPorRegistar]
	@IDUtilizador AS INT
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here	
	SELECT * FROM A_Campeonatos
	WHERE IDCampeonato 
	NOT IN (SELECT IDCampeonato FROM A_RegistoCampeonatos WHERE IDUtilizador = @IDUtilizador)
	
END